/**
 *  决策指挥-生产调度一张图 api
 *  @module api/makeDecisionScheduling
 *  @author coder
 */

// API_HOST
import {
	API_HOST
} from '@/config'

// axios
import axios from '@u/axios'

/**
 * 生产辅助系统告警
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const alarmCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/productionScheduling/alarmCount'
})

/**
 * 告警信息
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const alarmInfo = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/productionScheduling/alarmInfo'
})

/**
 * 井下人员信息
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const workerCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/productionScheduling/workerCount'
})

/**
 * 人员位置查询
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const workerInfo = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/productionScheduling/workerInfo'
})